#ifndef TIMETHREAD_H
#define TIMETHREAD_H

#include <QObject>
#include <QWidget>
#include <QThread>
#include <QtNetwork>
#include <QTcpSocket>
class TimeThread : public QThread
{
    Q_OBJECT
public:
    TimeThread(qintptr socketDescriptor,QObject* parent = 0);
    void run() override;
signals:
    void error(QTcpSocket::SocketError socketError);
private:
    qintptr socketDescriptor;
};

#endif // TIMETHREAD_H
